﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Untitled Page</title>

<STYLE type="text/css">
    
.galmin {
    border: medium none;
    margin-left: auto;
    margin-right: auto;
    min-height: 570px;
    text-align: center;
    width: 680px;
}

.thumbContainer {
    text-align: center;
}
  
.thmbbx {
    border-color: #E6E6E6;
    border-style: solid;
    border-width: 2px;
    float: left;
    height: 220px;
    margin: 4px;
    overflow: hidden;
    position: relative;
    text-align: center;    
    width: 151px;
}
.thmbbx1 {
    border-color: #E6E6E6;
    border-style: solid;
    border-width: 2px;
    float: left;
    height: 220px;
    margin: 4px 4px 4px 0;
    overflow: hidden;
    position: relative;
    text-align: center;
    width: 151px;
}
.thmbbxtop {
    border-color: #E6E6E6;
    border-style: solid;
    border-width: 2px;
    float: left;
    height: 220px;
    margin: 4px;
    overflow: hidden;
    position: relative;
    text-align: center;
    width: 151px;
}
.thmbbxtop1 {
    border-color: #E6E6E6;
    border-style: solid;
    border-width: 2px;
    float: left;
    height: 220px;
    margin: 4px 4px 4px 0;
    overflow: hidden;
    position: relative;
    text-align: center;
    width: 151px;
}  
    
.bestSellerItemContainer {
    background: url("../jcarousel/skins/ie7/best_bk.jpg") repeat scroll 0 0 #CCCCCC;
    border: 1px solid #333333;
    display: table;
    height: 200px;
    overflow: hidden;
    width: 150px;
}

.bestSellerCarouselTxt {
    color: #000000;
    font-weight: bold;
    margin: 8px 0 0;
    width: 150px;
    text-align:center
}
.bestSellerCarouselPrice {
    color: #D12728;
    font-size: 15px;
    font-weight: bold;
    margin: 0;
    text-align:center
}

.itemBox {    
    border: 0 none;
    display: table-cell;
    vertical-align: middle;
    width: 100%;
}

   
</STYLE>  

<!--
  jQuery library
-->
<script type="text/javascript" src="../jquery-1.7.1.min.js"></script>


<script type="text/javascript">

var itemList = [
    {url: "http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg", title: "Flower1", price: "$9.99"},
    {url: "http://static.flickr.com/75/199481072_b4a0d09597_s.jpg", title: "Flower2", price: "$9.99"},
    {url: "http://static.flickr.com/57/199481087_33ae73a8de_s.jpg", title: "Flower3", price: "$9.99"},
    {url: "http://static.flickr.com/77/199481108_4359e6b971_s.jpg", title: "Flower4", price: "$9.99"},
    {url: "http://static.flickr.com/58/199481143_3c148d9dd3_s.jpg", title: "Flower5", price: "$9.99"},
    {url: "http://static.flickr.com/72/199481203_ad4cdcf109_s.jpg", title: "Flower6", price: "$9.99"},
    {url: "http://static.flickr.com/58/199481218_264ce20da0_s.jpg", title: "Flower7", price: "$9.99"},
    {url: "http://static.flickr.com/69/199481255_fdfe885f87_s.jpg", title: "Flower8", price: "$9.99"},
    {url: "http://static.flickr.com/60/199480111_87d4cb3e38_s.jpg", title: "Flower9", price: "$9.99"},
    {url: "http://static.flickr.com/70/229228324_08223b70fa_s.jpg", title: "Flower10", price: "$9.99"},
    {url: "http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg", title: "Flower11", price: "$9.99"},
    {url: "http://static.flickr.com/75/199481072_b4a0d09597_s.jpg", title: "Flower12", price: "$9.99"}
];

/**
 * Item html creation helper.
 */
function getItemHTML(item)
{
    return '<div class="thmbbx"><div class="thumbContainer"><div class="itemBox" style="border: 1px solid #808080; width: 150px; height: 150px; background-image: none; background-position: center center; background-repeat: no-repeat;"><img src="' + item.url + '" width="150" height="150" alt="' + item.url + '" /></div><div class="bestSellerCarouselTxt" title="' + item.title + '">'+ item.title +'</div><div class="bestSellerCarouselPrice">'+ item.price + '</div></div>';    
};

jQuery(document).ready(function() {    
    for (var i = 0; i <= itemList.length; i++) {        
        var itemHTML = getItemHTML(itemList[i]) 
        $('#galleryContainer').append(itemHTML);
    }
});


</script>  
    
</head>
<body>
<div id="galleryContainer" class="galmin">
        
</div>


</body>
</html>
